package tds.study.nacos.consumer.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author tds
 * @version 1.0.0
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName ApplicationConfig
 * @Description TODO（这里用一句话描述这个类的作用)
 * @Date 2021-11-10 0:33
 */
@Configuration
public class ApplicationConfig {


    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
